package com.hejia.alauda.entity;

import javax.persistence.Column;

/**
 * 
 * 
 * 系统参数实体
 *
 *
 * Created by showone on 2014 下午4:08:24.
 */
public class Parameter extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	
	
	/**
	 * 参数类别
	 * Paygate-支付网关,Customer-客服参数,BankStyle-银行样式,Announcement-公告,SplashScreen-启动画面, 
	 * Activity-活动相关,Warning-预警,Custom-自定义,Setting-通用设置
	 * 
	 * @author hyr
	 *
	 */
	public enum Category {
		Paygate, Customer, BankStyle, Banner, Announcement, SplashScreen, 
		Navigation_ICON, Activity, Product, Warning, Custom, Setting;
	}
	public static final String ANNOUNCEMENT_TYPE_NORMAL="normal";//一般公告
	public static final String ANNOUNCEMENT_TYPE_EMERGENCY="emergency";//紧急公告

	@Column(length = 20)
	private Category category;// 参数种类

	@Column(length = 20)
	private String code;// 参数代码

	@Column(length = 100)
	private String value;// 参数值

	@Column(length = 200)
	private String memo;// 备注

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
}
